package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 群邀请对象 chat_group_invite
 * 
 * @author ruoyi
 * @date 2025-08-30
 */
public class ChatGroupInvite extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 邀请ID */
    private Long inviteId;

    /** 群组ID */
    @Excel(name = "群组ID")
    private Long groupId;

    /** 邀请人ID */
    @Excel(name = "邀请人ID")
    private Long inviterId;

    /** 被邀请人ID */
    @Excel(name = "被邀请人ID")
    private Long inviteeId;

    /** 邀请码 */
    @Excel(name = "邀请码")
    private String inviteCode;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expireTime;

    /** 状态（0未使用 1已使用 2已过期） */
    @Excel(name = "状态", readConverterExp = "0=未使用,1=已使用,2=已过期")
    private String status;

    public void setInviteId(Long inviteId) 
    {
        this.inviteId = inviteId;
    }

    public Long getInviteId() 
    {
        return inviteId;
    }

    public void setGroupId(Long groupId) 
    {
        this.groupId = groupId;
    }

    public Long getGroupId() 
    {
        return groupId;
    }

    public void setInviterId(Long inviterId) 
    {
        this.inviterId = inviterId;
    }

    public Long getInviterId() 
    {
        return inviterId;
    }

    public void setInviteeId(Long inviteeId) 
    {
        this.inviteeId = inviteeId;
    }

    public Long getInviteeId() 
    {
        return inviteeId;
    }

    public void setInviteCode(String inviteCode) 
    {
        this.inviteCode = inviteCode;
    }

    public String getInviteCode() 
    {
        return inviteCode;
    }

    public void setExpireTime(Date expireTime) 
    {
        this.expireTime = expireTime;
    }

    public Date getExpireTime() 
    {
        return expireTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inviteId", getInviteId())
            .append("groupId", getGroupId())
            .append("inviterId", getInviterId())
            .append("inviteeId", getInviteeId())
            .append("inviteCode", getInviteCode())
            .append("expireTime", getExpireTime())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
